package com.pzb.market.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 限时抢购对象 mk_panicbuying
 * 
 * @author Mr_Wu
 * @date 2021-12-22
 */
public class MkPanicbuying implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户id */
    private String extAppid;

    /** 现实活动名称 */
    private String panicName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private List<MkPanicbuyingGoods> goodsList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setPanicName(String panicName) 
    {
        this.panicName = panicName;
    }

    public String getPanicName() 
    {
        return panicName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public List<MkPanicbuyingGoods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<MkPanicbuyingGoods> goodsList) {
        this.goodsList = goodsList;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("panicName", getPanicName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("goodsList", getGoodsList())
            .toString();
    }
}
